﻿#!/bin/bash

## read从键盘读入变量值
read -p "请输入要测试的ip:" ip
ping -c1 $ip &> /dev/null && echo "$ip up" || echo "$ip down"



